import Mock from 'mockjs'
import '@/mock/extend'
const BASE_URL = process.env.VUE_APP_API_BASE_URL

const treeList = Mock.mock({
    'list|10': [{
        'key|+1': 0,
        'title':'@csentence(3, 5)',
        'p_id': '@integer(0,9)'
    }]
})
Mock.mock(`${BASE_URL}/roleTrees`, 'post', () => {
    return treeList
})
